import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

//引入基础样式
import '@/assets/less/index.less'

//全局引入elmentplus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

//signalr
import signalR from '@/signalr/signalR'

//引入图标库
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(ElementPlus)
app.use(router)
signalR.init()
signalR.start()
app.config.globalProperties.signalr = signalR

app.mount('#app')
